<?php
session_start();
include "system/config/config.php";
include "system/users/userAccess.class.php";
include "system/db/dbconnect.class.php";

$db = new Connection();



$userAccess = new UserAccess();
if ( $_POST['submitted'] == 'submitted') {
$userAccess->login( $_POST['username'], $_POST['password'] );
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=iso-8859-1"  />
<meta name="description" content=""></meta>
<title>OCS Toolbox</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"  />

<style type="text/css" media="screen">	@import "styles/mainstyle.css"; </style>









<!--[if IE]>
<link rel="stylesheet" type="text/css" href="styles/ie.css" />
<![endif]-->
</head>
<body>
<div id="wrapper">
	<div id="header">	
		<img src="images/header.gif" alt="" width="1000" height="120" />
	</div>
	
	
	<div id="container">
		<div id="side-a">
		<h3>What is the OCS Toolbox?</h3>
            <p>The OCS Toolbox is your interactive way to plan, create and order exactly what you want- when you want it!</p>
		</div>
		
		<div id="content">
			<h3>Welcome to the OCS Toolbox</h3>
			<h4>Login in to use</h4>
			<form id="loginForm" name="loginForm" action="index.php" method="post">
			<input type="hidden" id="submitted" name="submitted" value="submitted" />
			<h3>You are not authorised to view the previous page</h3>
			<table>
			<tr><td><label>Username</label></td><td><input type="text" name="username" id="username" /></td></tr>
			<tr><td><label>Password</label></td><td><input type="password" name="password" id="password" /></td></tr>
			<tr><td>&nbsp;</td><td><input type="submit" name="submit" id="submit" value="Submit" /></td></tr>
			</table>
			</form>
<p>If you require a login ID - please contact your Operations Manager</p>
		</div>
		
		<div id="side-b">
		</div>
	</div>
	<div id="footer">
		<p>&copy; <?php echo (COPYRIGHT); ?> 2009</p>
	</div>
</div>
</body>
</html>